a = ['1','12','3','34','4']
b = ['3','1','3','65','45','87']
for i in a :
    if i not in b:
            print (i)
for j in b :
    if j not in a:
        print (j)
